package com.wanglibao.woodtrade.woodtrade.util;

import com.wanglibao.woodtrade.woodtrade.widget.PullToRefreshView.PullToRefreshListView;

/**
 * Created by lugg on 2016/5/26.
 */
public class PullUtil {

    public static void initIndicator(PullToRefreshListView pullToRefreshListView) {
//        ILoadingLayout startLabels = pullToRefreshListView
//                .getLoadingLayoutProxy(true, false);
//        startLabels.setPullLabel("下拉刷新");// 刚下拉时，显示的提示
//        startLabels.setRefreshingLabel("正在刷新数据...");// 刷新时
//        startLabels.setReleaseLabel("松开刷新数据");// 下来达到一定距离时，显示的提示
////        startLabels.hideProgressView();
//
//        ILoadingLayout endLabels = pullToRefreshListView.getLoadingLayoutProxy(
//                false, true);
//        endLabels.setPullLabel("上拉加载");// 刚下拉时，显示的提示
//        endLabels.setRefreshingLabel("正在加载数据...");// 刷新时
//        endLabels.setReleaseLabel("松开加载数据");// 下来达到一定距离时，显示的提示
//        endLabels.hideProgressView();
    }
}
